import request from "@/utils/request";

export function getClassification(params) {
  return request({
    url: "/category/page",
    method: "get",
    params,
  });
}

export function addClassification(data) {
  return request({
    url: "/category",
    method: "post",
    data,
  });
}

export function updateClassification(data) {
  return request({
    url: "/category",
    method: "put",
    data,
  });
}
